#include<bits/stdc++.h>
using namespace std;
#define int long long

bool is[100005];

signed main() {

	memset(is, 1, sizeof is);
	is[1] = 0;
	for (int i = 2; i <= 10000; i++) {
		if (is[i]) {
			for (int j = 2 * i; j <= 10000; j += i)
				is[j] = 0;
		}
	}

	int n;
	cin >> n;
	for (int k = 4; k <= n; k += 2) {
		bool flag = 0;
		for (int i = 2; i <= n; i++) {
			if (flag)	break;
			if (!is[i])	continue;
			for (int j = i; i + j <= n; j++) {
				if (!is[j])	continue;
				if (i + j == k) {
					flag = 1;
					cout << k << "=" << i << "+" << j << endl;
					break;
				}
			}
		}
	}
	return 0;
}
